﻿using System;
using System.Linq.Expressions;
using ilgolosone.Shared.Domain;
using ilgolosone.DomainModel.Entities;

namespace ilgolosone.DomainModel.Queries
{
    public sealed class FindRestaurantBySpecialtyId : IDomainQuery<Specialty>
    {
        private readonly Guid _id;

        public FindRestaurantBySpecialtyId(Guid id)
        {
            _id = id;
        }

        public Expression<Func<Specialty, bool>> Criteria
        {
            get { return specialty => specialty.Id == _id; }
        }

    }
}
